// axios
import request from '@/utils/request'

export function getSnssaiByMd(data) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/getSnssaiByMdn',
    method: 'post',
    data
  })
}

export function getToken() {
  return request({
    url: '/plat/auth/token',
    method: 'post',
    data: {

    }
  })
}

export function createBusinssByApp (data) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/createBusinssByApp',
    method: 'post',
    data
  })
}
export function choiceSnssai (data) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/choiceSnssai',
    method: 'post',
    data
  })
}
export function deploy (data) {
  return request({
    url: '/api/biz/cfg/deploy',
    method: 'post',
    data
  })
}
export function insertSnssaiByMdn (data) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/insertSnssaiByMdn',
    method: 'post',
    data
  })
}
export function getServTask (params) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/getServTask',
    method: 'get',
    params
  })
}
export function getServTaskLogDetail (params) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/getServTaskLogDetail',
    method: 'get',
    params,
    hideloading: true
  })
}
export function getTnResCreateLog (params) {
  return request({
    url: '/api/rest/worksheet/v1/5GSlice/getTnResCreateLog',
    method: 'get',
    params
  })
}
